﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductListClear.aspx.cs" Inherits="CNVP.JShop.Web.Admin.ProductListClear" %>
<%@ Import NameSpace="System.Data"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=CNVP.Config.UIConfig.SiteName%></title>
    <!--#include file="include/basejs.aspx"-->
    <script src="Common/Option.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ProTypeRefBranks() {
            var ddlProductTypeID = document.getElementById("<% =ddlProductTypeID.ClientID %>").value;
            var lbBrandID = document.getElementById("<% =lbBrandID.ClientID %>");

            var lbProBrandID = document.getElementById("<% =lbProBrandID.ClientID %>").innerHTML;
            lbBrandID.innerHTML = GetAjaxResponse("CommonWindows/AjaxBranksIDS.aspx?lbProBrandID=" + lbProBrandID + "&ProductTypeID=" + ddlProductTypeID);

        }
    </script>
</head>
<body onload="ActiveCoolTable();ProTypeRefBranks();">
    <form id="form1" runat="server">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="cell_group">
            <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="ProductListClear.aspx">回收站</a>
        </td>
    </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" cellspacing="0" cellpadding="0" class="Option">
  <tr>
    <td><img src="Images/Dot09.png" /> 
        <asp:LinkButton ID="btRestore" runat="server" onclick="btRestore_Click">还原</asp:LinkButton></td>
    <td><img src="Images/Dot08.png" /> 
        <asp:LinkButton ID="btDelete" runat="server" onclick="btDelete_Click">删除</asp:LinkButton></td>
    <td><img src="Images/Dot08.png" /> 
        <asp:LinkButton ID="btDeleteAll" runat="server" onclick="btDeleteAll_Click" >清空</asp:LinkButton></td>
  </tr>
</table>
</td>
    <td align="right">
         关键词：
        <asp:TextBox ID="txtkey" runat="server"></asp:TextBox>
        <asp:ImageButton ID="btSearch" runat="server" ImageUrl="images/Dot17.png" 
             onclick="btSearch_Click" style="height: 13px" />
        <a href="javascript:void(0);" onclick="showQueDetail(true);" class="link_quedetail">高级检索</a>
       <div id="div_quedetail" class="HighSearch">
            <table width="100%" align="center" cellspacing="0" cellpadding="0" class="EditTable" >
                <tr>
                    <td colspan="2" align="right"><img src="images/ListClose.gif" onclick="showQueDetail(false);" style="cursor:pointer" title="关闭检索" alt="" /></td>
                </tr>
                <tr>
                    <td class="EditTitle">关 键 字：</td>
                    <td align="left" ><asp:TextBox ID="txtkey1" runat="server" Width="160px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="EditTitle">商品分类：</td>
                    <td align="left" >
                        <asp:DropDownList ID="ddlProductClassID" runat="server" Width="160px"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="EditTitle">商品类型：</td>
                    <td align="left" >
                        <asp:DropDownList ID="ddlProductTypeID" runat="server" Width="160px"></asp:DropDownList>
                    </td>
                </tr>
                 <tr>
                    <td class="EditTitle">商品品牌：</td>
                    <td align="left" >
                        <asp:Label ID="lbBrandID" runat="server"></asp:Label>
                        <asp:Label ID="lbProBrandID" runat="server" CssClass="Display"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="EditTitle">商品状态：</td>
                    <td align="left" >
                        <asp:DropDownList ID="ddlProductState" runat="server" Width="160px">
                            <asp:ListItem Value="">--请选择--</asp:ListItem>
                            <asp:ListItem Value="1">上架</asp:ListItem>
                            <asp:ListItem Value="0">下架</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                <td colspan="2">
                    <div class="EditBtn">
                        <asp:Button ID="btHighSearch" runat="server" Text=" 检 索 " onclick="btHighSearch_Click"  class="EditBtn" />
                        <input type="button" value="关 闭" class="list_search_btn" onclick="showQueDetail(false);"/>
                    </div>
                    </td>
                </tr>
            </table>
            </div>
    </td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
        <asp:Repeater ID="rpList" runat="server">
                <HeaderTemplate>
                     <thead>
                            <tr>
                                <th class="CheckBox"><input onclick="checkAllLine()" id="checkedAll" name="checkedAll" type="checkbox" title="全部选择/全部不选" /></th>
                                <th>商品名称</th>
                                <th>商品编号</th>
                                <th>商品分类</th>
                                <th>商品类型</th>
                                <th>品牌</th>
                                <th>总库存</th>
                                <th>状态</th>
                                <th>操作</th>
                             </tr>
                        </thead>
                         <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                     <tr>
                        <td class="CheckBox">
                            <asp:CheckBox id="cbCheck" runat="server" ToolTip='<%#Eval("ID")%>'></asp:CheckBox>
                        </td>
                        <td><a href="ProductAdd.aspx?Page=<%=PageIndex %>&TypeEdit=clear&ID=<%#((DataRowView)Container.DataItem)["ID"]%>" title="<%#((DataRowView)Container.DataItem)["oProductName"]%>"><%#((DataRowView)Container.DataItem)["oProductName"]%></a></td>
                        <td><a href="ProductAdd.aspx?Page=<%=PageIndex %>&TypeEdit=clear&ID=<%#((DataRowView)Container.DataItem)["ID"]%>"><%#((DataRowView)Container.DataItem)["ProductCode"]%></a></td>
                        
                        <td><a href="ProductListClear.aspx?SearchType=1&ProductClassID=<%#((DataRowView)Container.DataItem)["ProductClassID"]%>"><%#((DataRowView)Container.DataItem)["oProductClassID"]%></a></td>
                        <td><a href="ProductListClear.aspx?SearchType=1&ProductTypeID=<%#((DataRowView)Container.DataItem)["ProductTypeID"]%>"><%#((DataRowView)Container.DataItem)["oProductTypeID"]%></a></td>
                        <td><a href="ProductListClear.aspx?SearchType=1&BrandID=<%#((DataRowView)Container.DataItem)["BrandID"]%>"><%#((DataRowView)Container.DataItem)["oBrandID"]%></a></td>
                        <td><%#((DataRowView)Container.DataItem)["oStockTotalNum"]%></td>
                        <td><%#((DataRowView)Container.DataItem)["oProductState"]%></td>
                        <td><a href="../ProductDetail_<%#Eval("ProductClassID")%>_<%#Eval("ID")%>.aspx" target="_blank"><font color="red">预览</font></a></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                 <asp:Literal ID="lblEmpty" Text="<tr><td colspan='8'>没有符合条件的条目!</td></tr>" runat="server" Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                     </tbody>
                </FooterTemplate>
        </asp:Repeater>
            <tfoot>
            <tr><td colspan="9"><div id="paging" runat="server"></div></td></tr>
            </tfoot>
        </table>
    </td>
  </tr>
</table>
    </form>
</body>
</html>
